package com.andnnl.act.conf;

import act.Act;
import act.conf.AppConfig;
import act.controller.annotation.UrlContext;
import org.osgl.$;
import org.osgl.mvc.annotation.GetAction;

/**
 * Created by chenss on 2019/12/3.
 */
@UrlContext("/conf")
public class ConfTest1 {
    @GetAction("pull")
    public int pull() {
        AppConfig conf = Act.appConfig();
        return $.convert(conf.get("myconf.foo.bar")).toInt();
    }
}
